package cn.wolfcode.ssm.mapper;

import cn.wolfcode.ssm.domain.Notice;
import cn.wolfcode.ssm.qo.QueryObject;
import com.sun.org.apache.bcel.internal.generic.LSTORE;
import org.apache.ibatis.annotations.Param;
import org.omg.PortableServer.LIFESPAN_POLICY_ID;

import java.util.List;

public interface NoticeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Notice record);

    Notice selectByPrimaryKey(Long id);

    List<Notice> selectAll();

    int updateByPrimaryKey(Notice record);

    List<Notice> selectForResult(QueryObject qo);

    void insertRelation(@Param("noticeId") Long noticeId,@Param("employeeId") Long employeeId);
    void deleteRelation(Long noticeId);

    List<Long> getNotice(Long id);
}